<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/commissiondetail/detail" id="searchForm">
	  <div class="col-md-12">
		  <div class="row">
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-3 control-label">${_res["commissionDetail.investor"]}</label>
		         <div class="col-md-9">
		            <input type="text" class="form-control" name="customer.l_username" placeholder="${_res['commissionDetail.investor']}" value="${paramMap['customer.l_username']}"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-3 control-label">${_res["system.startdate"]}</label>
		         <div class="col-md-9">
		            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionDetail.gt_createtime"  placeholder="${_res['system.startdate']}" value="${paramMap['commissionDetail.gt_createtime']}"/>
		         </div>
		       </div>
		    </div>
		    <div class="col-md-4">
		      <div class="form-group">
		         <label class="col-md-3 control-label">${_res["system.enddate"]}</label>
		         <div class="col-md-9">
		             <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionDetail.le_createtime"  placeholder="${_res['system.enddate']}" value="${paramMap['commissionDetail.le_createtime']}"/>
		         </div>
		       </div>
		     </div>
		  </div>
		  
		  <div class="row">
		   <div class="col-md-4">
		         <div class="form-group">
		           <label class="col-md-3 control-label">${_res["commissionDetail.commsiontype"]}</label>
		           <div class="col-md-9">
		               <#dict type="select" class="form-control" name="commissionDetail.f_commissiontype"  dictCode="COMMISSION_TYPE" defaultValue="${paramMap['commissionDetail.f_commissiontype']}"/><br>
		           </div>
		       </div>
		     </div>
		   
		    <div class="col-md-4">
		          <div class="form-group">
		            <label class="col-md-3 control-label">${_res["settlement.status"]}</label>
		          <div class="col-md-9">
		             <#dict type="select" class="form-control" name="commissionDetail.f_status"  dictCode="SETTLEMENT_STATUS" defaultValue="${paramMap['commissionDetail.f_status']}"/><br>
		         </div>
		       </div>
		    </div>
		    <div class="col-md-2">
		        <div class="form-group">
		          <button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
		          <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
		        </div>
		    </div>
		  </div>
	  </div>
	</form>
</div>

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("downloadcommissiondetail")){ %>
		<p><a href="javascript:void(0);" onClick="downloaddetail();" class="btn btn-primary pull-left">${_res["system.export"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered table-hover">
	    <thead>
	        <tr>
	            <th>${_res["commissionDetail.investor"]}</th>
	            <th>${_res["commissionDetail.related.person"]}</th>
	            <th>${_res["commissionDetail.commsiontype"]}</th>
	            <th>${_res["project.name"]}</th>
	            <th>${_res["commissionDetail.amount"]}</th>
	            <th>${_res["commission.rule.type"]}/${_res["commission.rule.rebate"]}</th>
	            <th>${_res["commissionDetail.status"]}</th>
	            <th>${_res["system.memo"]}</th>
	            <th>${_res["system.operatortime"]}</th>
	            <th>${_res["system.operator"]}</th>
	          </tr>
	    </thead>
	    <tbody>
	        <%for (commissionDetail in commissionList!){%>
	         <tr class="gradeC">
	            <td><#cust customerId="${commissionDetail.userid!}"/></td>
	            <td><#cust customerId="${commissionDetail.relatedrPerson!}"/></td>
	            <td><#dict type="lable"  value="${commissionDetail.commissiontype!}"  dictCode="COMMISSION_TYPE" /></td>
	            <td><#dict type="lable" table="project" filedName="projectname" filedValue="id" value="${commissionDetail.ProjectId}"/></td>
	            <td><#dict type="lable"  value="${commissionDetail.currency!}" dictCode="CURRENCY" />,${commissionDetail.commission!}</td>
	            <td><#dict type="lable"  value="${commissionDetail.feetype!}"  dictCode="COMMISSION_FEE_TYPE" />/${commissionDetail.rebate!}</td>
	            <td><#dict type="lable"  value="${commissionDetail.status!}"  dictCode="SETTLEMENT_STATUS" /></td>
	            <td>${commissionDetail.memo!}</td>
	             <td>${commissionDetail.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
	            <td>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/commissiondetail/edit/${commissionDetail.id!}')">${_res["system.editMemo"]}</button>
	            </td>
	       </tr>
	       <%}%>
	    </tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"  />
	</div>
	<#nav />
</div>

<script>
 function downloaddetail(){
	 debugger;
	var url = "/admin/commissiondetail/download";
	var data = serializeObject("searchForm");
	ajaxDownload(url,data);
	return true;
  };
</script>
 